package com.jxx.service;

import com.jxx.pojo.Order;
import com.jxx.pojo.PageObject;

import java.util.List;

public interface OrderService {
    /**
     * @Description: 订单分页查询
     * @Param: [userId, orderStatus, page, rows]
     * @return: com.jxx.pojo.PageObject<com.jxx.pojo.Order>
     * @Author: laixinghua
     * @Date: 2020/12/8 0008 下午 2:31
     */
    PageObject<Order> findAllOrderByUserIdAndOrderStatus(Integer userId, Integer orderStatus, Integer page, Integer rows);

    /**
     * @Description: 订单删除
     * @Param: [orderId]
     * @return: int
     * @Author: laixinghua
     * @Date: 2020/12/8 0008 下午 2:31
     */
    int deleteOrderByOrderId(Integer orderId);

    /**
     * @Description: 更改订单状态
     * @Param: [order]
     * @return: int
     * @Author: laixinghua
     * @Date: 2020/12/8 0008 下午 2:36
     */
    int updateOrderStatus(Order order);

    /**
     * @Description: 根据订单Id查询订单详情
     * @Param: [orderId]
     * @return: com.jxx.pojo.Order
     * @Author: laixinghua
     * @Date: 2020/12/8 0008 下午 8:25
     */
    Order findorderDetailByorderId(Integer orderId);
}